package JavaBean;

public class PageBean {
	private  int  pageSum;//总页数
	private  int  record;//总记录数
	private  int  pageRecord;//每页记录
	
	public int getPageSum() {
		int temp=1;
		if(getRecord()%getPageRecord()==0){
			temp=getRecord()/getPageRecord();
		}
		else{
			
			temp=getRecord()/getPageRecord()+1;
		}
		return  temp;
	}
	public int getRecord() {
		return record;
	}
	public void setRecord(int record) {
		this.record = record;
	}
	public int getPageRecord() {
		return pageRecord;
	}
	public void setPageRecord(int pageRecord) {
		this.pageRecord = pageRecord;
	}
	

}
